package com.twinkle.operator;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Cls {
    private Integer clsId;
    private String clsNo;
    private String clsName;
    private Date clsBeginTime;

    public Cls() {
        super();
    }

    public Cls(Integer clsId, String clsNo, String clsName, Date clsBeginTime) {
        super();
        this.clsId = clsId;
        this.clsNo = clsNo;
        this.clsName = clsName;
        this.clsBeginTime = clsBeginTime;
    }

    public Integer getClsId() {
        return clsId;
    }

    public void setClsId(Integer clsId) {
        this.clsId = clsId;
    }

    public String getClsNo() {
        return clsNo;
    }

    public void setClsNo(String clsNo) {
        this.clsNo = clsNo;
    }

    public String getClsName() {
        return clsName;
    }

    public void setClsName(String clsName) {
        this.clsName = clsName;
    }

    public Date getClsBeginTime() {
        return clsBeginTime;
    }

    public void setClsBeginTime(Date clsBeginTime) {
        this.clsBeginTime = clsBeginTime;
    }

    @Override
    public String toString() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        return "Cls{" +
                "clsId=" + clsId +
                ", clsNo='" + clsNo + '\'' +
                ", clsName='" + clsName + '\'' +
                ", clsBeginTime=" + simpleDateFormat.format(clsBeginTime) +
                '}';
    }
}
